package com.ruoyi.web.controller.drug;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.drug.domain.DrugFactory;
import com.ruoyi.drug.service.IDrugFactoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/drug/physic")
public class DrugFactoryController extends BaseController {
    @Autowired
    private IDrugFactoryService drugFactoryService;

    @PreAuthorize("@ss.hasPermi('drug:factory:list')")
    @GetMapping("/listFactory")
    public AjaxResult list(){
        List<DrugFactory> list = drugFactoryService.selectFactoryList();
        return success(list);
    }
}
